# -*- coding: utf-8 -*-
# 获取相关搜索内容

import requests


def check_proxy():
    """第二种："""
    mysession = requests.session()
    for i in range(10):
        mysession.keep_alive = False  # 关闭多余连接
        res = mysession.get(url="http://httpbin.org/get")
        proxyIP = res.text
        print(proxyIP)


if __name__ == '__main__':
    check_proxy()


